package sdstcom.lbq.one.lbq.activity;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.view.Window;
import android.widget.ImageView;
import android.widget.ListView;

import sdstcom.lbq.one.R;

public class XiaojiActivity extends AppCompatActivity {
    private Toolbar toolbar;
    private ListView listView;
private ImageView img;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        supportRequestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.activity_xiaoji);
        init();
        img.setImageResource(R.mipmap.no_diary_pic);
        listView.setEmptyView(img);
        toolbar.setNavigationIcon(R.mipmap.ali_feedback_icon_back_white);
        toolbar.setTitle("小记");
        toolbar.setNavigationOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });

    }

    private void init() {
        toolbar= (Toolbar) findViewById(R.id.xiaoji_toolbar);
        listView= (ListView) findViewById(R.id.xiaoji_listview);
        img= (ImageView) findViewById(R.id.empty_img);
    }
}
